package inheritance;

import inheritance.Employee;

public class Manager extends Employee {

    private int bonus;

    /**
     * @param bonus the bonus to set
     */
    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    /**
     * @return the bonus
     */
    public int getBonus() {
        return bonus;
    }

    @Override
    public int getSalary() {
        return super.getSalary() + bonus;
    }
    
}